package com.rpay.web.controller;

import com.rpay.common.enums.PcsResultCode;
import com.rpay.common.vo.PcsResult;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Title：
 * Description
 *
 * @author fxg06 on 2018/4/19
 * @version 1.0
 */
@RestController
public class BaseErrorController implements ErrorController {
    @Override
    public String getErrorPath() {
        return null;
    }

    @RequestMapping(value = "error")
    public PcsResult errorJson404() {
        return PcsResult.build(PcsResultCode.NOT_FOUND_HANDLER);
    }
}
